<?php

namespace App\Plugin\HostServer\Front\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class EmailNotify extends Mailable
{
    use Queueable, SerializesModels;
    public $config;
    public $title;
    /**
     * Create a new config instance.
     *
     * @return void
     */
    public function __construct($title,$config)
    {
        //
        $this->config=$config;
        $this->title=$title;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {

       return $this->subject($this->title)->view('plugin.hostserver.front.email.notify')->with(['config'=>$this->config]);
    }
}
